package com.pengpeng.testStarter.config;

import com.pengpeng.starter.bean.PersonProperties;
import com.pengpeng.starter.service.PersonTemplate;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MyPersonConfig {

    @Bean
    public PersonTemplate personTemplate(PersonProperties personProperties){
        personProperties.setAge(100);
        PersonTemplate personTemplate = new PersonTemplate();
        personTemplate.setPersonProperties(personProperties);
        return personTemplate;
    }
}
